package com.rtx.api.annotation;

import com.rtx.api.enums.FieldValidateType;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 字段非空验证注解
 */
@Retention(RUNTIME)
@Target({FIELD})
public @interface FieldValidate {
    FieldValidateType type() default FieldValidateType.INSERT;
}
